package com.znsd.r_e_m.dao;

import com.znsd.r_e_m.bean.Student;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface EsDataGet {

    public List<Student> queryAll();
    //根据姓名查询
    List<Student> queryStudentByName(String name);

    //查询所有
    List<Student> queryAll(Integer page, Integer size);

    //全局搜索
    List<Student> globalSearch(String keyword, Integer page, Integer size);

    public int globalSearchTotal(String keyword);

}